<layout name="layout"/>
<style>
    body {
        background: #fff;
    }
</style>
<div class="row">
    <div class="col-lg-12">
        <ul class="breadcrumb">
            <li><a href="{:U('Application/appmgr')}"><i class="icon-home"></i> 应用中心</a></li>
            <volist name="navPage" id="navi">
                <li><a href="{$navi.url}">{$navi.name}</a></li>
            </volist>
        </ul>
    </div>
</div>
<div class="row">
    <div class="col-lg-12">
        <section class="panel">
            <form id="add_application" >
                <div class="form-group clearfix mb10">
                    <label for="application_name" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">应用名称：</label>
                    <div class="col-sm-11 ">
                        <input type="text" class="form-control wp40 dis-inline" id="application_name" name="application_name" placeholder="请输入应用名称" maxlength="200">
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label for="build_id" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">build ID：</label>
                    <div class="col-sm-11 ">
                        <input type="text" class="form-control wp40 dis-inline" id="build_id" name="build_id" placeholder="请输入build ID" maxlength="200">
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label class="col-sm-1 control-label mt10 p0 tr" style="font-weight:normal;">应用类型：</label>
                    <div class="col-sm-11 mt5">
                        <label style="font-weight: normal">
                            <input type="radio" checked name="application_type" value="1" > 苹果应用
                        </label>
                        <label style="font-weight: normal;margin-left:20px;">
                            <input type="radio"  name="application_type" value="2" > 安卓应用
                        </label>
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label class="col-sm-1 control-label mt10 p0 tr" style="font-weight:normal;">应用环境：</label>
                    <div class="col-sm-11 mt5">
                        <label style="font-weight: normal">
                            <input type="radio" checked name="environment" value="1" > 正式环境
                        </label>
                        <label style="font-weight: normal;margin-left:20px;">
                            <input type="radio"  name="environment" value="2" > 测试环境
                        </label>
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label for="version" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">当前版本号：</label>
                    <div class="col-sm-11 ">
                        <input type="text" class="form-control wp40 dis-inline" id="version" name="version" placeholder="请输入版本号" onkeyup="this.value=this.value.replace(/\D/g,'');" maxlength="200">
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label for="min_version" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">最小版本号：</label>
                    <div class="col-sm-11 ">
                        <input type="text" class="form-control wp40 dis-inline" id="min_version" name="min_version" placeholder="请输入版本号" onkeyup="this.value=this.value.replace(/\D/g,'');" maxlength="200">
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label for="application_password" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">配对key：</label>
                    <div class="col-sm-11 ">
                        <input type="text" class="form-control wp40 dis-inline" id="application_password" name="application_password" placeholder="非必填" maxlength="200">
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label class="col-sm-1 control-label mt10 p0 tr" style="font-weight:normal;">广告状态：</label>
                    <div class="col-sm-11 mt5">
                        <label style="font-weight: normal">
                            <input type="radio" checked name="is_show_ad" value="1" > 显示
                        </label>
                        <label style="font-weight: normal;margin-left:20px;">
                            <input type="radio"  name="is_show_ad" value="2" > 隐藏
                        </label>
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label for="ad_app_id" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">广告ID：</label>
                    <div class="col-sm-11 ">
                        <input type="text" class="form-control wp40 dis-inline" id="ad_app_id" name="ad_app_id" placeholder="非必填" onkeyup="this.value=this.value.replace(/\D/g,'');" maxlength="200">
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label for="ad_tail_id" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">开屏广告ID：</label>
                    <div class="col-sm-11 ">
                        <input type="text" class="form-control wp40 dis-inline" id="ad_tail_id" name="ad_tail_id" placeholder="非必填" onkeyup="this.value=this.value.replace(/\D/g,'');" maxlength="200">
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label for="ad_incentive_id" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">激励广告ID：</label>
                    <div class="col-sm-11 ">
                        <input type="text" class="form-control wp40 dis-inline" id="ad_incentive_id" name="ad_incentive_id" placeholder="非必填" onkeyup="this.value=this.value.replace(/\D/g,'');" maxlength="200">
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label for="ae_resource_url" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">AE模版资源：</label>
                    <div class="col-sm-11 ">
                        <input type="text" class="form-control wp40 dis-inline" id="ae_resource_url" name="ae_resource_url" placeholder="非必填" maxlength="200">
                    </div>
                </div>
                <div class="form-group clearfix mb10">
                    <label for="ae_materialtype_url" class="col-sm-1 control-label mt10 p0 tr course_name" style="font-weight:normal;">AE模版目录：</label>
                    <div class="col-sm-11 ">
                        <input type="text" class="form-control wp40 dis-inline" id="ae_materialtype_url" name="ae_materialtype_url" placeholder="非必填" maxlength="200">
                    </div>
                </div>
            </form>
            <div class="tc">
                <button type="button" class="h30 w200 m20 button button-primary button-rounded button-tiny btn-workCalendar save_c_list" onclick="application.insertApplication();" >提  交</button>
            </div>
            <div class="clearfix"></div>
        </section>
    </div>
</div>
<script src="__PUBLIC__/js/module/module.application.js"></script>
<script>
    var APP = "__APP__";
    var application = new Application();

    $(function () {
        application.init();
    });

</script>